<!--
@license
Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
-->

<link rel="import" href="../bower_components/plugin-element/plugin-element.html">
<link rel="import" href="../bower_components/plugin-element/plugin-xhr.html">
<link rel="import" href="shop-style-common.html">
<link rel="import" href="shop-image.html">

<dom-module id="shop-school">

    <template>
    <style include="shop-style-common">
    </style>
        这是学堂
    </template>

    <script>
        class ShopSchool extends PluginElement {

            static get is() {
                return 'shop-school';
            }

            static get properties() {
                return {
                    visible: {
                        type: Boolean,
                        observer: '_visibleChanged'
                    },
                    app: {
                        type: Object,
                        value: function() {
                            return app;
                        }
                    }
                }
            }

            _visibleChanged(visible) {
                if (visible) {
                    this.dispatchEvent(new CustomEvent('change-section', {
                        bubbles: true,
                        composed: true,
                        detail: {
                            title: '学堂'
                        }
                    }));
                }
            }
            ready() {
                super.ready();
            }
        }

        customElements.define(ShopSchool.is, ShopSchool);

    </script>

</dom-module>
